﻿using Coldairarrow.Entity.MEGA;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.MEGA
{
    public interface IMEGA_LeafBladeAndWorkerBusiness
    {
        Task<PageResult<MEGA_LeafBladeAndWorkerDTO>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<MEGA_LeafBladeAndWorker> GetTheDataAsync(string id);
        Task AddDataAsync(MEGA_LeafBladeAndWorker data);
        Task UpdateDataAsync(MEGA_LeafBladeAndWorker data);
        Task DeleteDataAsync(List<string> ids);
    }

    public class MEGA_LeafBladeAndWorkerDTO: MEGA_Worker
    {
        /// <summary>
        /// 叶片id
        /// </summary>
        public string LBId { get; set; }

        /// <summary>
        /// 工人id
        /// </summary>
        public string WId { get; set; }
    }
}